/**
 * Created by admin on 2019/1/10.
 */
	function showTime() {
		var myDate = new Date();//实例化时间
		myDate.toLocaleString( );        //获取日期与时间
		var y=myDate.getFullYear();    //获取完整的年份(4位,1970-????)
		var m=myDate.getMonth()+1;       //获取当前月份(0-11,0代表1月)
		var d=myDate.getDate();        //获取当前日(1-31)
		var h=myDate.getHours();       //获取当前小时数(0-23)
		var min=myDate.getMinutes();     //获取当前分钟数(0-59)
		var s=myDate.getSeconds();     //获取当前秒数(0-59)
		var ms = m < 10 ? "0" + m : m;//月份计算
		var ds = d < 10 ? "0" + d : d;//周日计算	
		var hs = h < 10 ? "0" + h : h;
		var mis = min < 10 ? "0" + min : min;
		var ss = s < 10 ? "0" + s : s;
		var time = y + "/" + ms + "/" + ds + " " + hs + ":" + mis + ":" + ss;
		document.getElementById("p").value = time;
		setTimeout("showTime()", 1000);
	};
